import {get, post, postJson} from './http'

const config = {
  getPage(data){
    if(!data){
      data = {}
    }
    return post('/config_center/appUiInfo/getPage',{
      // environment: data.environment || null,  //环境，1：H5，2：Weex，3：Android，4：iOS
      type:data.type || null,  //类别，1：Icon，2：文字，
      location: data.location || null,
      pageNum:data.pageNum || 1,
      pageSize: data.pageSize || 200,
      status: data.status || null
    })
  },
  //七夕活动专区
  getTemplateActivityRelationList(data) {
    return post('/order_center/getTemplateActivityRelationList', {
      pageNum: data.pageNum,
      pageSize: data.pageSize,
      activityId: data.activityId,
      templateActivityDescribe: data.templateActivityDescribe || null,

    })
  },
    getAllNews(data){
    return post('customer_center/getNews', {
        location: data.location,   //  0：官网新闻资讯，1：iOS版本更新记录，2：Android，3：小程序
        pageNum: data.pageNum,
        pageSize: data.pageSize
    })
    },
    getOneNews(data){
    return post('customer_center/getOneNews',{
        newsId: data.newsId
    })
    }
}
export default config